<?php
class indexAction extends frontAction{
	public function execute(){
		$currentID = service_menu::getCurrent(service_type::DEMAND);
		$cache = new Cache_request();
		$cache->set("currentID",$currentID);
		$this->assign('currentMenuID',$currentID);	
	}
	public function executePost(){
		$demand = $this->getPostParam('demand',array());
		if(empty($demand)) jsonReturn(0,'失败');
		$dao = new DaoDemand();
		$dao->insert($demand);
		jsonReturn(1,'ok');
	}
}
?>
